package com.xueyi.system.inspection.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.inspection.domain.dto.InspectionDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

import java.time.LocalDateTime;

/**
 * 田间巡检 持久化对象
 *
 * @author zlf
 */
@TableName(value = "base_inspection", excludeProperty = {"name", "sort"})
public class InspectionPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 基地id
     */
    @Excel(name = "种植记录id")
    @TableField("plant_id")
    private String plantId;

    /**
     * 基地id
     */
    @Excel(name = "种子批次")
    @TableField("seed_batch")
    private String seedBatch;

    /**
     * 基地id
     */
    @Excel(name = "基地id")
    @TableField("area_id")
    private String areaId;

    /**
     * 基地名称
     */
    @Excel(name = "基地名称")
    @TableField("area_name")
    private String areaName;

    /**
     * 地块id
     */
    @Excel(name = "地块id")
    @TableField("parcel_id")
    private String parcelId;

    /**
     * 地块名称
     */
    @Excel(name = "地块名称")
    @TableField("parcel_name")
    private String parcelName;

    /**
     * 巡检类型（病虫害、其他）
     */
    @Excel(name = "巡检类型", readConverterExp = "病=虫害、其他")
    @TableField("type")
    private String type;

    /**
     * 图片
     */
    @Excel(name = "图片")
    @TableField("img")
    private String img;

    /**
     * 巡检时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "巡检时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("inspection_time")
    private LocalDateTime inspectionTime;

    /**
     * 巡检人
     */
    @Excel(name = "巡检人")
    @TableField("inspectioner_id")
    private String inspectionerId;

    /**
     * 巡检人
     */
    @Excel(name = "巡检人")
    @TableField("inspectioner")
    private String inspectioner;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    @TableField("phone")
    private String phone;

    /**
     * 状态
     */
    @Excel(name = "状态")
    @TableField("status")
    private String status;

    /**
     * 主要阶段
     */
    @Excel(name = "主要阶段")
    @TableField("stage_id")
    private String stageId;

    /**
     * 审核人
     */
    @TableField(value = "checker")
    private String checker;

    /**
     * 审核人
     */
    @TableField(value = "check_code")
    private String checkCode;

    public String getChecker() {
        return checker;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getStageId() {
        return stageId;
    }

    public void setStageId(String stageId) {
        this.stageId = stageId;
    }

    public String getPlantId() {
        return plantId;
    }

    public void setPlantId(String plantId) {
        this.plantId = plantId;
    }

    public String getSeedBatch() {
        return seedBatch;
    }

    public void setSeedBatch(String seedBatch) {
        this.seedBatch = seedBatch;
    }

    public String getInspectionerId() {
        return inspectionerId;
    }

    public void setInspectionerId(String inspectionerId) {
        this.inspectionerId = inspectionerId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setParcelId(String parcelId) {
        this.parcelId = parcelId;
    }

    public String getParcelId() {
        return parcelId;
    }

    public void setParcelName(String parcelName) {
        this.parcelName = parcelName;
    }

    public String getParcelName() {
        return parcelName;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    public void setInspectionTime(LocalDateTime inspectionTime) {
        this.inspectionTime = inspectionTime;
    }

    public LocalDateTime getInspectionTime() {
        return inspectionTime;
    }

    public void setInspectioner(String inspectioner) {
        this.inspectioner = inspectioner;
    }

    public String getInspectioner() {
        return inspectioner;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
